package com.bookstore.mappers;

import com.bookstore.pojo.OrderItem;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrderItemMapper {

    int deleteByPrimaryKey(Integer id);

    int insert(OrderItem record);

    OrderItem selectByPrimaryKey(@Param("userId") String userId);

    List<OrderItem> selectAll();

    int updateByPrimaryKey(String record);

    List<OrderItem> selectOrderItemByUserId(@Param("orderId") String orderId);

    int saveOrderItem(OrderItem orderItem);


    List<OrderItem> getOrderItems(@Param("orderId")String orderId);

    OrderItem getOrderItemOne(@Param("orderId") String orderId);
}